core: Improve error message if we hit an unreadable file
authorColin Walters <walters@verbum.org>
Wed, 2 May 2012 14:21:41 +0000 (10:21 -0400)
committerColin Walters <walters@verbum.org>
Fri, 4 May 2012 20:14:47 +0000 (16:14 -0400)
src/libostree/ostree-repo.c

index 447f53de67280e39b99852810de7bcf2b4ff6c01..948ef91289685a1f6190dfc6aebc685dac2859a1 100644 (file)
@@ -3565,7 +3565,10 @@ ostree_repo_load_file (OstreeRepo         *self,
             {
               ret_input = (GInputStream*) g_file_read (loose_path, cancellable, error);
               if (!ret_input)
-                goto out;
+                {
+                  g_prefix_error (error, "Error opening loose file object %s: ", ot_gfile_get_path_cached (loose_path));
+                  goto out;
+                }
             }
         }
     }